﻿using Battle.Net;
using NUnit.Framework;

namespace Aesha.wow.Api.Tests
{
    [TestFixture]
    public class AuctionTests
    {
        public BattleNetConnection Connection { get; set; }

        [TestFixtureSetUp]
        public void Setup()
        {
            Connection = new BattleNetConnection(Host.Europe, Locale.en_GB)
                {
                    UseCache = true,
                    CacheConnectionString = Properties.Settings.Default.CacheConnectionString
                };
        }

        [Test]
        public void GetRealmAuctions()
        {
            var auctions = Connection.Auctions.GetLatest("Arathor");
            Assert.IsTrue(auctions.Alliance.List.Count > 0);
        }
    }
}
